package io.afu.common.exception;

import io.afu.common.constant.ConstantEnum;

public class InternalException extends BaseException {

    private static final long serialVersionUID = 12371263791623917L;

    public InternalException() {
        // 默认返回内部错误
        super(ConstantEnum.INTERNAL_ERROR);
    }

    public InternalException(String message){
        super(message);
    }

    public InternalException(String message, Integer code){
        super(message,code);
    }

    public InternalException(ConstantEnum constantEnum){
        super(constantEnum);
    }

    public InternalException(Throwable cause) {
        super(cause);
    }

}
